Evaluation of Declarative n-Queens Recursion: A Deductive Database Approach

نویسندگان

  • Jiawei Han
  • Ling Liu
  • Tong Lu
چکیده

Can we evaluate a logic program declaratively? That is, can a logic program be evaluated correctly and eeciently, independent of query modes and rule/predicate ordering, nding a complete set of answers, and terminating properly? The answer could be \yes", at least for a good subclass of logic programs, based on our investigation and experimentation using a deductive database approach. In this paper, an n-queens problem, a classical logic program, is used as a running example to demonstrate the methodology. Our analysis shows that binding analysis and constraint exploration are two essential issues in the realization of declarative logic programming. The limitations of our methodology are also discussed in the paper.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Compilation and Evaluation of Nested Linear Recursions: a Deductive Database Approach

A deductive database system is an extension of a relational database system by supporting a rulebased, more expressive database language while preserving the set-oriented and declarative style of a relational database query language. This thesis studies the implementation and extension of the chain-based compilation and evaluation method, an interesting method for deductive query evaluation. Ou...

متن کامل

Evaluation of Regular Nonlinear Recursions by Deductive Database Techniques

Nonlinear recursion is one of the most challenging classes of logic programs for eecient evaluation in logic programming systems. We identify one popular class of nonlinear recur-sion, regular nonlinear recursion, and investigate its eecient implementation by a deductive database approach. The approach performs a detailed query binding analysis based on query information, constraint information...

متن کامل

Deductive Databases | Where to Now?

Deductive databases result from the integration of database and logic programming techniques. It combines the beneets of these two approaches, such as representational and operational uniformity, recursion, declarative querying, eecient secondary storage access, etc. However, signiicant problems remain inherent in this synthesis. There are four broad areas where problems are apparent. The rst p...

متن کامل

A Theoretical Framework for the Declarative Debugging of Datalog Programs

The logic programming language Datalog has been extensively researched as a query language for deductive databases. Although similar to Prolog, the Datalog operational mechanisms are more intricate, leading to computations quite hard to debug by traditional approaches. In this paper, we present a theoretical framework for debugging Datalog programs based on the ideas of declarative debugging. I...

متن کامل

Transactions and Updates in Deductive Databases

In this paper we develop a new approach providing a smooth integration of extensional updates and declarative query language for deductive databases. The approach is based on a declarative speci cation of updates in rule bodies. Updates are not executed as soon are evaluated. Instead, they are collected and then applied to the database when the query evaluation is completed. We call this approa...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Inf. Sci.

دوره 105  شماره 

صفحات  -

تاریخ انتشار 1998